package com.yuyang.gulimall.product.feign;

import com.yuyang.common.to.es.SkuEsModel;
import com.yuyang.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author yu yang
 * @date 2023/1/7 -23:13
 */
@FeignClient("gulimall-search")
public interface SearchFeignService {
    @PostMapping("search/save/product")
    R productStartUp(@RequestBody List<SkuEsModel> skuEsModels);
}
